package com.example.demo.mapper;

import com.example.demo.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

/**
 * @Author:wjup
 * @Date: 2018/9/26 0026
 * @Time: 15:20
 */
@Service
public interface UserMapper {
    /**
     * AAA
     * @param id
     * @return
     */
    @Select("select * from user where id = #{id}")
    User getById(int id);

}